//
//  CategoryViewController.m
//  meiyaya
//
//  Created by 张领瑞 on 2017/9/11.
//  Copyright © 2017年 ShiFeiEr. All rights reserved.
//

#import "CategoryViewController.h"

@interface CategoryViewController ()
@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation CategoryViewController
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    NSURL *url = [NSURL URLWithString:self.url];
    NSURLRequest *req = [NSURLRequest requestWithURL:url];
    [self.webView loadRequest:req];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
